package com.project.bean;

import java.time.LocalDate;
import java.util.List;

/**
 * 销售出库信息实体类
 */
public class SalesOrderBean {
    /**出库信息编号*/
    private int id;
    /**客户名称*/
    private String clientName;
    /**销售员*/
    private String saller;
    /**销售日期*/
    private LocalDate saleDate = LocalDate.now();
    /**订单金额*/
    private int amount;
    /**送货地址*/
    private String address;
    /**出库物品明细*/
    private List<CommodityBean> commodityList;

    public SalesOrderBean() {
    }

    public SalesOrderBean(String clientName, String saller, LocalDate saleDate, int amount, String address, List<CommodityBean> commodityList) {
        this.clientName = clientName;
        this.saller = saller;
        this.saleDate = saleDate;
        this.amount = amount;
        this.address = address;
        this.commodityList = commodityList;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getClientName() {
        return clientName;
    }

    public void setClientName(String clientName) {
        this.clientName = clientName;
    }

    public String getSaller() {
        return saller;
    }

    public void setSaller(String saller) {
        this.saller = saller;
    }

    public LocalDate getSaleDate() {
        return saleDate;
    }

    public void setSaleDate(LocalDate saleDate) {
        this.saleDate = saleDate;
    }

    public int getAmount() {
        return amount;
    }

    public void setAmount(int amount) {
        this.amount = amount;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public List<CommodityBean> getCommodityList() {
        return commodityList;
    }

    public void setCommodityList(List<CommodityBean> commodityList) {
        this.commodityList = commodityList;
    }

    @Override
    public String toString() {
        return "SalesOrderBean{" +
                "id=" + id +
                ", clientName='" + clientName + '\'' +
                ", saller='" + saller + '\'' +
                ", saleDate=" + saleDate +
                ", amount=" + amount +
                ", address='" + address + '\'' +
                ", commodityList=" + commodityList +
                '}' + "\n";
    }
}
